Article::onArticleDelete( $this->mTitle );
# Log the deletion, if the page was suppressed, log it at Oversight instead
- $logtype = $suppress ? 'oversight' : 'delete';
+ $logtype = $suppress ? 'suppress' : 'delete';
$log = new LogPage( $logtype );
$log->addEntry( 'delete', $this->mTitle, $reason );
$logParams[] = $this->blockLogFlags();
# Make log entry, if the name is hidden, put it in the oversight log
- $log_type = ($this->BlockHideName) ? 'oversight' : 'block';
+ $log_type = ($this->BlockHideName) ? 'suppress' : 'block';
$log = new LogPage( $log_type );
$log->addEntry( 'block', Title::makeTitle( NS_USER, $this->BlockAddress ),
$reasonstr, $logParams );
$conds = array();
$matches = array();
// Is user allowed to see all the blocks?
- if ( !$wgUser->isAllowed( 'oversight' ) )
+ if ( !$wgUser->isAllowed( 'suppress' ) )
$conds['ipb_deleted'] = 0;
if ( $this->ip == '' ) {
// No extra conditions
}
foreach( $this->events as $logid ) {
// Don't hide from oversight log!!!
- if( !isset( $logRows[$logid] ) || $logRows[$logid]->log_type=='oversight' ) {
+ if( !isset( $logRows[$logid] ) || $logRows[$logid]->log_type=='suppress' ) {
$wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' );
return;
} else if( !LogPage::userCan( $logRows[$logid],Revision::DELETED_RESTRICTED) ) {
$success = false;
continue; // Must exist
} else if( !LogPage::userCan($logRows[$logid], Revision::DELETED_RESTRICTED)
- || $logRows[$logid]->log_type=='oversight' ) {
+ || $logRows[$logid]->log_type == 'suppress' ) {
// Don't hide from oversight log!!!
$userAllowedAll=false;
continue;
*/
function updateLog( $title, $count, $nbitfield, $obitfield, $comment, $target, $param, $items = array() ) {
// Put things hidden from sysops in the oversight log
- $logtype = ( ($nbitfield | $obitfield) & Revision::DELETED_RESTRICTED ) ? 'oversight' : 'delete';
+ $logtype = ( ($nbitfield | $obitfield) & Revision::DELETED_RESTRICTED ) ? 'suppress' : 'delete';
$log = new LogPage( $logtype );
// FIXME: do this better
if( $param=='logid' ) {
$this->mPreview = $request->getCheck( 'preview' ) && $posted;
$this->mDiff = $request->getCheck( 'diff' );
$this->mComment = $request->getText( 'wpComment' );
- $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $wgUser->isAllowed( 'oversight' );
+ $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $wgUser->isAllowed( 'suppress' );
if( $par != "" ) {
$this->mTarget = $par;
# Format the user-visible controls (comment field, submission button)
# in a nice little table
$align = $wgContLang->isRtl() ? 'left' : 'right';
- if( $wgUser->isAllowed( 'oversight' ) ) {
+ if( $wgUser->isAllowed( 'suppress' ) ) {
$unsuppressBox =
"<tr>
<td> </td>
$this->addWhere(array('ipb_id' => $params['ids']));
if(isset($params['users']))
$this->addWhere(array('ipb_address' => $params['users']));
- if(!$wgUser->isAllowed('oversight'))
+ if(!$wgUser->isAllowed('suppress'))
$this->addWhere(array('ipb_deleted' => 0));
// Purge expired entries on one in every 10 queries